package lambda;
import lambda.interF.Operator;
public class demo2 {
    public static void main(String[] args) {
        Operator add=(a,b)-> System.out.println("a+b="+(a+b));
        Operator subtract=(a,b)-> System.out.println("a-b="+(a-b));
        Operator multiple=(a,b)-> System.out.println("a*b="+(a*b));
        Operator division=(a,b)-> System.out.println("a/b="+(1.0*a/b));

        add.operator(5,2);
        subtract.operator(5,2);
        multiple.operator(5,2);
        division.operator(5,2);
    }

}
